package com.suitsoft.bdms.service.system;

import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.suitsoft.bdms.dao.commos.SubPointDao;
import com.suitsoft.bdms.entity.system.SubPointEntiry;

/**
 *
 *@author Suine
 */
@Service
@Transactional
public class SubPointManager {
	/** 日志输出对象 */
	protected final Logger logger = LoggerFactory.getLogger(getClass());
	@Autowired
	private SubPointDao subPointDao;
	
	public SubPointEntiry get(Long id){
		return subPointDao.get(id);
	}
	
	public void delete(Long id){
		subPointDao.delete(id);
	}
	
	public void save(SubPointEntiry entiry){
		subPointDao.save(entiry);
	}

	public List<SubPointEntiry> getAll(){
		return subPointDao.getAll();
	}
	
	public Map<String,Object> findSycUserByLoginName(String loginName){
		return subPointDao.findSycUserByLoginName(loginName);
	}
}

